{% extends 'base.html' %}
{% block title %}用户中心{% endblock %}
{% block middle_script %}
    <script type="text/javascript" src="/static/js/jquery.form.min.js"></script>
{% endblock %}
{% block content %}
    <div class="user_menu_con fl">
        <div class="user_center_pic">
            <img src="
                    {% if data.user_info.avatar_url %}
                        {{ data.user_info.avatar_url }}
                    {% else %}
                        /static/images/2020.png
                    {% endif %}"
                 alt="用户图片" class="now_user_pic">
        </div>
        <div class="user_center_name">{{ data.user_info.username }}</div>

        <ul class="option_list">
            <li class="active"><a href="{{ url('users:base_info') }}" target="main_frame">基本资料</a></li>
            <li><a href="{{ url('users:pic_info') }}" target="main_frame">头像设置</a></li>
            <li><a href="{{ url('users:user_follow') }}" target="main_frame">我的关注</a></li>
            <li><a href="{{ url('users:user_pass') }}" target="main_frame">密码修改</a></li>
            <li><a href="{{ url('users:user_collection') }}" target="main_frame">我的收藏</a></li>
            <li><a href="{{ url('users:news_release') }}" target="main_frame">新闻发布</a></li>
            <li><a href="{{ url('users:news_list') }}" target="main_frame">新闻列表</a></li>
        </ul>
    </div>
{% endblock %}
{% block iframe %}
    <div class="user_con fr">
        <iframe src="{{ url('users:base_info') }}" frameborder="0" name="main_frame" class="main_frame"
                id="main_frame"></iframe>
    </div>
{% endblock %}

